﻿using Material.Domain.Entities;
using Material.Domain.IRepository;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Material.Domain.Services
{
    public class MaterialService
    {
        private readonly IMaterialRepository _materialRepository;
        public MaterialService(IMaterialRepository materialRepository)
        {
            _materialRepository = materialRepository;
        }
        /// <summary>
        /// 获取单个实体
        /// </summary>
        /// <returns></returns>
        public async Task<List<TzMaterial>> GetMaterialPageListAsync(RefAsync<int> totalConut, int page, int limit)
        {
            return await _materialRepository.GetPageListAsync(totalConut,page,limit);
        }
    }
}
